<%@ page import="com.parfinex.sims.entity.User" %><%--
  Created by IntelliJ IDEA.
  User: lijh
  Date: 2021-11-06
  Time: 10:09
  To change this template use File | Settings | File Templates.
--%>
<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>学生信息管理系统-主页</title>
    <link rel="stylesheet" href="static/css/bootstrap.min.css">
</head>
<body>
    <%@include file="common/header.jsp"%>
    <div class="container-fluid">
        <%--
        session.getAttribute("userInfo")这个返回的一个object类型,而我们要获取的是一个User类型,所以要强转
        (强转类型)(要强转对象)
        (UserInfo)(session.getAttribute("userInfo"))
        然后在把整体括号起来,在用.获取用户名
        --%>
        <h1 class="">欢迎<%=((User)(session.getAttribute("userInfo")).getUserName())%>使用拉勾教育班级信息管理系统</h1>
    </div>

    <%@include file="common/footer.jsp"%>
<script rel="script" src="static/css/bootstrap.min.css"></script>
</body>
</html>
